package com.todod.base.module.base.controller.admin.protocolstandard.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.todod.base.framework.excel.core.annotations.DictFormat;
import com.todod.base.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 协议标准 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProtocolStandardRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "仪器类型")
    @ExcelProperty(value = "仪器类型", converter = DictConvert.class)
    @DictFormat("yq_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String deviceType;

    @Schema(description = "序号")
    @ExcelProperty("序号")
    private String serialNumber;

    @Schema(description = "协议代码")
    @ExcelProperty("协议代码")
    private String protocolCode;

    @Schema(description = "协议名称")
    @ExcelProperty("协议名称")
    private String protocolName;

    @Schema(description = "状态")
    @ExcelProperty("状态")
    private Boolean state;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}